Page 2 of 5 FirstFirst 1234 ... LastLast
Results 11 to 20 of 48

Thread: Purple Elephants Eventhandler

  1. #11
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    returning to work on this....
    My objective is to merge PE's mines and PE's weapons mods in to my setup. Since I ran it to trouble with PE eventhandler... I thought I'd try to just add the mine mod to my setup without eventhandler.

    I have two questions on the mine mod:
    The docs say...
    Place
    -------------------------------
    exec global/mines/main.scr::main
    -------------------------------
    In global/dmprecache.scr

    If you are NOT using my eventhandler, you will need to place
    -------------------------------------------
    local.result = registerev "spawn" global/mines/main.scr::main
    ------------------------------------------
    to your global/dmprecache.scr

    So question one... if you're NOT using the eventhandler... do you put BOTH lines in dmprecache or just the second one? Docs not clear on this point.

    Second question:
    When I put it all in to my setup, if I have all 3 enabled (mines, sticky's, c4), how do I switch between them? It seems the docs say to select grenades (which is 5 for me, and by default). So are you supposed to see it cycle between sticky/c4/mine each time you press 5? Are the graphics supposed to be different? Long story short, I'm just trying to know how to tell for sure if the mod is at least partially working.

    Any advice is much appreciated!

    J

  2. #12
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    Ok... I started from scratch yet again. Fresh mohaa directory, fresh copy of reborn. Added the eventhandler mod... this is what the logfile shows....

    unknown command: flist
    local.list = flist local.path "" 0 (global/eventhandler.scr, 180)
    local.list = ^

    unknown command: typeof
    if(local.list != NIL && local.list.size > 0 && (typeof local.list == "array")) (global/eventhandler.scr, 182)
    if(local.list != NIL && local.list.size > 0 && (^

    unknown command: typeof
    if(typeof local.script != "const array") (global/eventhandler.scr, 224)
    if(^

    ^~^~^ Script file compile error: Couldn't compile 'global/eventhandler.scr'
    exec global/eventhandler.scr (global/dmprecache.scr, 65)
    ^

    ^~^~^ Script Error: Script 'global/eventhandler.scr' was not properly loaded


    ScriptMaster::GetScript: Script 'global//eventhandler.scr' was not properly loaded

  3. #13
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Hi

    I am AfK for a few days, but that error is likely caused by reborn not being installed and updated to latest version, it is looking for the command 'flist' and 'typeof' which is not a stock mohaa command. Please ensure you have correctly installed reborn and try again

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  4. #14
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    OK, I'm really embarrassed to have to ask for help on this as I'm sure it should be easy and I'm missing something very obvious.

    See above.... trying to install PE's eventhandler. I have been away from mohaa modding for a while, so it's very likely I've just forgotten something critical.

    So I installed a fresh copy of the linux game server on a separate development machine. I tested it thoroughly and it works fine. I then installed the latest reborn patch. I then tested that thoroughly and it works fine as well. The startup log files look completely normal. This is a *STOCK* install. Absolutely no mods, just a stock linux server and reborn. Of course it's possible/likely that I'm an idiot, but I don't think I'm an idiot enough to have installed reborn incorrectly. I also stripped down my server.cfg to the very bare minimum (as far as no references to non-stock stuff).

    So from the stock linuxmohaa/reborn install... I then install PE's eventhandler mod as follows:
    1) Action: Copy zzzzzzzPurpleEventhandler.pk3 to my main directory.
    2) Note: The only other pak files in my main are Pak0-5, and pak6 as well as zzzzzzzzzzzzzzz_Reborn_pak8.pk3
    3) Note: Just to show I'm capable of copying and renaming files correctly, above maindir is fgameded.so @ 484036 and fgamededmohaa.so @ 4103596
    4) Note: The directions for the eventhandler mod say to add exec global/eventhandler.scr to my dmprecache.scr. Given this is a clean/stock install, there isn't a user-modified one hanging around. I see there is a DMprecache.scr in Pak0, and a DMprecache.scr in pak6. As I understand it - the last one loaded wins (diff shows that the one in pak6 is smaller, identical except for the omission of a handful of cache entries). So I decide to use the one in pak6. Problem here?
    5) Action: I extract DMprecache.scr from pak6, and add "exec global/eventhandler.scr" to the end of the file. I then create a new pk3 containing just my new global/dmprecache.scr (yes, I have the paths stored in the zip) and name it such that I am sure it is being loaded AFTER the stock Pak0-5,pak6 files and thus is the running dmprecache.scr.
    6) Action: Start the server.... and I get errors again exactly as listed above. To which PE replied that I probably don't have reborn installed and updated.
    7) Note: My config file is at http://pastebin.com/Wyvc1zcT , the startup console log is at http://pastebin.com/HmYBkCU7 , and the qconsole.log is at http://pastebin.com/vdTw24AV

    So there are all the nitty gritty details. I'd sure love to know what I'm doing wrong.......

    Best,

    JayWest1024

  5. #15
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Hi,

    The Steps you followed seem to be correct, except for Step 6 where you quoted what i replied before, you have it installed but you have not yet updated it, i know that sounds weird but depending on where you downloaded the binaries, the internal version may still be out of date.

    Latest Version is 3.5.1 internal 1.117. I am guessing its still running an older internal version, because according to your qconsole.log you posted, it has scheduled an update after the next map change, i am also guessing that you have not let it update before trying to fix the problem with the mod?
    your qconsole.log
    Code:
    ------------------ MoH:AA 1.12 Reborn Patch InitGame ------------------ 
     Initializing SignalHandlers. Done!
     Initializing CVARS. Done!
     --> Last update was made 18 hours ago (0 day/s ago).
     --> Checking for update...
     -->     fgameded.so               r: 532c563da92189acaed2ee2bf8dfc217
                                       l: 032e9ef80a2766a2eae289fa7b006d35
     --> Number of files to update: 1
    
     --> Server will update during next map change!
    Go into your server and type the following command
    patchver

    It should say the version number, if it is not 1.117, then you need to change the map a FEW times to allow reborn to update itself.

    The bottom section of this post explains how to update >> http://www.x-null.net/forums/showthr...NG-ANY-CRASHES

    If it fails to update for any reason, the binaries here >> http://www.x-null.net/forums/forumdi...l-Reborn-Patch << are updated to 1.117

    Hope this helps
    Kind Regards
    PurpleElephant1au

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




  6. #16
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    Odd, I just downloaded my binaries from the links you reference above, so not sure why it said there was an update. But I will do that.

    Also - I first attempted this on my production server, not a test server, and on my production server reborn is most definitely up to date. Yet... on that server I still get exactly the same error message. Plus, I wouldn't think that flist and typof were just recently added to the patch...

    I will force the update, then report back. Thanks!

    J

  7. #17
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    Really strange happenings....

    >patchver
    Server is running MoH:Reborn 1.12 Patch RC3.5 LINUX
    Internal Version Number: 1.117

    I went back to a completely stock config and reapplied my mods one at a time (except eventhandler). Server then chokes on some obj maps, sticks playing some SP-MP maps over and over... Kind of at a loss to explain that.

    I did note the following error in the logs...
    ==== CleanupGame ====
    CM_LoadMap( maps/dm/mohdm4.bsp, 0 )
    ^~^~^ Can't find textures/misc_outside/canal_sludge.tga
    Loading Reborn Loader...
    ScriptMaster::ExecuteThread: Can't find 'reborn/reborn_loader.scr'
    Adding script: 'dm/mohdm4_precache.scr'

    I suspect that not being able to find reborn/reborn_loader.scr is bad... but... that is not in the reborn pak3, so where is it supposed to come from? Does the executable make that dir and load it up?

    Not really sure what to try next. I think I'll grab the binaries you mention and go back to stock config again and see what happens... *sigh*.

    J

  8. #18
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    Perhaps some progress...

    Using the link PE provided, I see the reborn pak3 file contained therein DOES have a "reborn" folder inside of it. That explains a lot... as none of the reborn pk3 folders I've had in the past include that folder. My guess is that it was added at some point, and my system wasn't doing updates correctly (see below) and thus never got it.

    As to the update failure... I know I had posted about this ages ago... the reborn pk3 includes state file changes that conflict with lots of things I (and others) have done. So when applying my mods, I extract the reborn pk3 to a folder, then delete the pk3. I then apply all my mods, and then zip it back up as a standalone pk3 (no longer with the original name). This was done in an effort to keep the update process from clobbering my mods to state files every time a new reborn pk3 came out. I was told that "its unlikely the reborn pk3 will change often if at all". Well.... So when update runs, it updates my binaries... but never the zzzzzrebornpak8.pk3 as it doesn't exist anymore. But... the (then current) reborn pk3 is what is used as the base for my mods, so always should be included. Unless it changes

    So... would reborn starting to use PE's event handler possibly remove the requirement for the reborn pk3 to stomp on state files for updates?

    I'm going to refactor everything with the files PE mentioned... and based on what he's said previously I bet that solves the issues!

  9. #19
    Developer Todesengel's Avatar
    Join Date
    Dec 2013
    Location
    St. Louis, Missouri, USA
    Posts
    266

    Default

    I'm just cursed.... now, when the server switches from dm/mohdm4 to obj/obj_team1... and the reborn folder is definitely present.....

    ==== CleanupGame ====
    CM_LoadMap( maps/obj/obj_team1.bsp, 0 )
    ^~^~^ Can't find textures/interior/hearthsides.tga
    ^~^~^ Can't find textures/interior/hearth_set1baseF.tga
    ^~^~^ Can't find textures/interior/whitewoodbmtrm.tga
    ^~^~^ Can't find textures/interior/panel_set2.tga
    Loading Reborn Loader...
    unknown command: getentity
    local.var = getentity(local.var); (reborn/libraries/common/common.class, 156)
    local.var = ^

    ^~^~^ Script file compile error: Couldn't compile 'reborn/libraries/common/common.class'
    local.class thread local.class.path::__meta; (reborn/system.class, 312)
    local.class ^

    ^~^~^ Script Error: Script 'reborn/libraries/common/common.class' was not properly loaded


    local.class waitthread local.class.path::__init; (reborn/system.class, 314)
    local.class ^

    ^~^~^ Script Error: Script 'reborn/libraries/common/common.class' was not properly loaded

    So where is getentity defined?

  10. #20
    Purple Developer Purple Elephant1au's Avatar
    Join Date
    Feb 2012
    Location
    Australia
    Posts
    1,259

    Default

    Hi,

    The Reborn Loader part is a new framework that was under development by Sor, and unsure whether it was fully implemented or not, so you do NOT need to add it to your server, it will not affect the game.
    So having this error
    Loading Reborn Loader...
    ScriptMaster::ExecuteThread: Can't find 'reborn/reborn_loader.scr'

    Is ok and does not stop the server from loading. SO if your getting more errors, remove the reborn folder, will not stop it from working.

    You seem to be getting more errors then most people have, very unlucky.

    The Update Process i have seen has never actually edited the files within a pk3, only the binaries associated with Reborn, While the pk3 contains the state file fixes, i think leyok was working on the state fixes to implement inside the binaries and not using the state files, but i dont think it has been worked on in ages so dont hold your breath.

    So are you getting the errors without running the reborn framework? (reborn_loader.scr)

    Purple's Playground
    OBJ :
    103.29.85.127:12203
    xfire: purpleelephant1au
    email: purpleelephant1au@gmail.com
    skydrive: PurpleElephantSkydrive




Page 2 of 5 FirstFirst 1234 ... LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •